package com.bj58.mis.apm.server.kylinreceive.repository;

import com.bj58.mis.apm.server.kylinreceive.model.KylinTable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * kylin项目关联表操作jpa
 * @author wangxw
 */
public interface KylinTableRepository extends JpaRepository<KylinTable, Long> {
    /**
     * 查询项目下未删除的表
     * @param projectId
     * @param isDelete
     * @return
     */
    List<KylinTable> queryByProjectIdAndIsDelete(String projectId, Boolean isDelete);

    KylinTable getKylinTableByProjectIdAndNameAndIsDelete(String projectId, String name, Boolean isDelete);
}
